<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="src/Module.js"></script>
    <script src="src/Util.js"></script>
    <script src="src/Cart.js"></script>
    <title>Module</title>
  </head>
  <body>
    <script>
      const goods = [
        { sn: 1, name: 'Ipad', price: 3800 },
        { sn: 2, name: 'MacBook Air', price: 7800 },
        { sn: 3, name: 'MacBook Pro', price: 13800 },
        { sn: 4, name: 'MacBook M1', price: 15800 },
        { sn: 5, name: 'IWatch', price: 2800 },
      ]

      let cart = new Cart(goods)
      console.log(cart.total())
      console.table(cart.order('price', 'desc'))
    </script>
  </body>
</html>
